package two_shape;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Line;
import javafx.stage.Stage;

public class MultipleLine extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("Line Drawing Example");

        Line line1 = new Line(10, 50, 150, 50);
        Line line2 = new Line(10, 100, 150, 100);
        Line line3 = new Line(10, 50, 10, 100);
        Line line4 = new Line(150, 50, 150, 100);

        Group group = new Group();
        group.getChildren().addAll(line1, line2, line3, line4);
        Scene scene = new Scene(group, 300, 200, Color.GREEN);
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
